home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / ntsdexts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.7 KB  |  100 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1990-1996  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     ntsdexts.h
  8.  
  9. Abstract:
  10.  
  11.     This file contains procedure prototypes and structures
  12.     needed to write NTSD and KD debugger extensions.
  13.  
  14. Environment:
  15.  
  16.     runs in the Win32 NTSD debug environment.
  17.  
  18. Revision History:
  19.  
  20. --*/
  21.  
  22. /*
  23.  *      C/C++ Run Time Library - Version 9.0
  24.  *
  25.  *      Copyright (c) 1997, 1998 by Borland International
  26.  *      All Rights Reserved.
  27.  *
  28.  */
  29.  
  30. #ifndef _NTSDEXTNS_
  31. #define _NTSDEXTNS_
  32. #pragma option push -b
  33.  
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. typedef
  40. VOID
  41. (*PNTSD_OUTPUT_ROUTINE)(
  42.     char *,
  43.     ...
  44.     );
  45.  
  46. typedef
  47. DWORD
  48. (*PNTSD_GET_EXPRESSION)(
  49.     char *
  50.     );
  51.  
  52. typedef
  53. VOID
  54. (*PNTSD_GET_SYMBOL)(
  55.     LPVOID offset,
  56.     PUCHAR pchBuffer,
  57.     LPDWORD pDisplacement
  58.     );
  59.  
  60. typedef
  61. DWORD
  62. (*PNTSD_DISASM)(
  63.     LPDWORD lpOffset,
  64.     LPSTR lpBuffer,
  65.     BOOL fShowEfeectiveAddress
  66.     );
  67.  
  68. typedef
  69. BOOL
  70. (*PNTSD_CHECK_CONTROL_C)(
  71.     VOID
  72.     );
  73.  
  74. typedef struct _NTSD_EXTENSION_APIS {
  75.     DWORD nSize;
  76.     PNTSD_OUTPUT_ROUTINE lpOutputRoutine;
  77.     PNTSD_GET_EXPRESSION lpGetExpressionRoutine;
  78.     PNTSD_GET_SYMBOL lpGetSymbolRoutine;
  79.     PNTSD_DISASM lpDisasmRoutine;
  80.     PNTSD_CHECK_CONTROL_C lpCheckControlCRoutine;
  81. } NTSD_EXTENSION_APIS, *PNTSD_EXTENSION_APIS;
  82.  
  83. typedef
  84. VOID
  85. (*PNTSD_EXTENSION_ROUTINE)(
  86.     HANDLE hCurrentProcess,
  87.     HANDLE hCurrentThread,
  88.     DWORD dwCurrentPc,
  89.     PNTSD_EXTENSION_APIS lpExtensionApis,
  90.     LPSTR lpArgumentString
  91.     );
  92.  
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96.  
  97.  
  98. #pragma option pop
  99. #endif // _NTSDEXTNS_
  100.